package com.woniu.supermarket.mapper;

import com.github.pagehelper.PageInfo;
import com.woniu.supermarket.entity.Unit;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface UnitMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Unit record);

    Unit selectByPrimaryKey(Integer id);

    List<Unit> selectAll();

    int updateByPrimaryKey(Unit record);

    List<Unit> selectByCons(@Param("cons") String cons);

}